home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Erics C++ Libraries / Interface Classes / CPPButton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  920 b   |  36 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/23/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPButton
  6.     
  7.     SUPERCLASS: CPPVisualObject
  8.     
  9.         This C++ class manages a button control
  10.     
  11. ********************************************************************/
  12.  
  13. #pragma once
  14.  
  15. #include <CPPControl.h>
  16.  
  17. class CPPButton : public CPPControl {
  18. public:
  19.             CPPButton (CPPWindow *itsWindow, short ResID,
  20.                          Boolean isFramed = FALSE,
  21.                          Boolean canBeTarget = FALSE,
  22.                          Boolean active = FALSE, Boolean visible = TRUE);
  23.             CPPButton (CPPWindow *itsWindow, Rect *itsBounds,
  24.                          StringPtr itsText,
  25.                          Boolean isFramed = FALSE,
  26.                          Boolean useWindowFont = FALSE,
  27.                          Boolean canBeTarget = FALSE,
  28.                          Boolean active = FALSE, Boolean visible = TRUE);
  29.             ~CPPButton (void);
  30.  
  31.     virtual    char     *ClassName (void);
  32.         
  33.     virtual    void    EnableButton (Boolean nowEnabled);
  34.     
  35.             void    SimulateClick (void);
  36. };